package com.thinkgem.jeesite.modules.hk.shop.entity.shop;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.hk.shop.entity.category.HkShopCategory;
import com.thinkgem.jeesite.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

/**
 * 商铺入驻
 *
 * @ProjectName: merchant
 * @Package: com.thinkgem.jeesite.modules.hk.shop.entity.shop
 * @ClassName: ${CLASS_NAME}
 * @Description: 商铺入驻
 * @Author: lxr
 * @CreateDate: 2018-11-02 11:42
 * @UpdateUser: lxr
 * @UpdateDate: 2018-11-02 11:42
 * @UpdateRemark: The modified content
 * @Version: 1.0
 **/
public class HkUserShopEnter extends DataEntity<HkUserShopEnter> {

    private static final long serialVersionUID = 1L;


    private String username;
    private String shopPassword;        // 店铺密码
    private String name;        // 店铺名称
    private String imgSrc="/userfiles/sh.png";   //店铺logo
    private HkShopCategory category;        // 主营类目
    private String managerName;        // 店铺管理人真实姓名
    private String managerEmail;        // 店铺管理人员邮箱
    private String managerMobile;        // 店铺管理人手机号
    private String cardPersonImgSrc;        // 身份证人像面图片路径
    private String cardCountryImgSrc;        // 身份证国徽面图片路径
    private User user;   //用户对象
    private HkUserShop shop; //店铺对象


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Length(min = 8, max = 20, message = "密码为8-20位字符")
    public String getShopPassword() {
        return shopPassword;
    }


    public void setShopPassword(String shopPassword) {
        this.shopPassword = shopPassword;
    }

    @Length(min = 1, max = 30, message = "店铺名称为1-30个字符")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Length(min = 1, max = 200, message = "店铺LOGO路径长度必须介于 1 和 200 之间")
    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    public HkShopCategory getCategory() {
        return category;
    }

    public void setCategory(HkShopCategory category) {
        this.category = category;
    }

    @Length(min = 2, max = 32, message = "店铺管理人真实姓名长度必须介于 2 和 32 之间")
    public String getManagerName() {
        return managerName;
    }


    public void setManagerName(String managerName) {
        this.managerName = managerName;
    }

    @Length(min = 1, max = 32, message = "店铺管理人员邮箱长度必须介于 1 和 32 之间")
    public String getManagerEmail() {
        return managerEmail;
    }

    public void setManagerEmail(String managerEmail) {
        this.managerEmail = managerEmail;
    }

    @Length(min = 1, max = 11, message = "店铺管理人手机号长度必须介于 1 和 11 之间")
    public String getManagerMobile() {
        return managerMobile;
    }

    public void setManagerMobile(String managerMobile) {
        this.managerMobile = managerMobile;
    }

    @Length(min = 1, max = 200, message = "身份证人像面图片路径长度必须介于 1 和 200 之间")
    public String getCardPersonImgSrc() {
        return cardPersonImgSrc;
    }

    public void setCardPersonImgSrc(String cardPersonImgSrc) {
        this.cardPersonImgSrc = cardPersonImgSrc;
    }

    @Length(min = 1, max = 200, message = "身份证国徽面图片路径长度必须介于  1 和 200 之间")
    public String getCardCountryImgSrc() {
        return cardCountryImgSrc;
    }

    public void setCardCountryImgSrc(String cardCountryImgSrc) {
        this.cardCountryImgSrc = cardCountryImgSrc;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public HkUserShop getShop() {
        return shop;
    }

    public void setShop(HkUserShop shop) {
        this.shop = shop;
    }
}
